package cc.lj.internal.api.coupons.dto.command;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * Description: 调用内网领域层 发券多个批次多张券入参结构
 * Create by liangxifeng on 2021-07-19
 */
@NoArgsConstructor
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Validated
public class SendTicketsAPICommand {
    //微信unionid
    private String unionid;
    //用户手机号
    private String phone;
    //券批次主键=>发券数量
    @NotNull
    private Map<Integer,Integer> batchIds;
    //券包主键
    @Min(value=1,message = "券包主键>=1的数字")
    private Integer packageId;
}
